# -*- coding: utf-8 -*-
from wineAreas import RegionArea, regionClassGenerator, FranceArea
from qtcommon import tr

# define this region classes
LanguedocRoussillonArea , LanguedocRoussillonAppellation, LanguedocRoussillonGroup, newgroup = regionClassGenerator("LanguedocRoussillon", tr("Languedoc-Roussillon") , FranceArea)


                                                                        
# fill the specifics to this region. we put it in a function so it is invoked only when needed.
def createRegion():
    LanguedocRoussillonArea._cepages = [
        ["Syrha","Carignan",u"Mourvèdre","Grenache","Cabernet-Sauvignon", "Cinsault", "Merlot",  ],
        ["Grenache blanc","MuscaT", "Bourboulenc" ,"Clairette", "Chardonnay" , "Chenin", "Grenache Gris", "Maccabeu", "Malvoisie" ,"Marsanne", "Muscat d'Alexandrie" ,"Roussanne", "Sauvignon Blanc", "Viognier" ],
        []
        ]

    
    r = LanguedocRoussillonArea()
    r.addAppellations( [
        newgroup(tr("Languedoc"),id="languedoc") ,
        u"Blanquette de Limoux",
        u"Limoux méthode ancestrale",
        u"Crémant de Limoux",
        u"Limoux",
        u"Cabardès",
        u"Corbières",
        u"Corbières-boutenac",
        u"languedoc",
        u"Fitou",
        u"Minervois",
        u"Minervois-la-livinière",
        u"Malepère",
        u"Muscat de Frontignan",
        u"Muscat de Mireval",
        u"Muscat de Saint-Jean-de-Minervois",
        u"Muscat de Lunel",


        u"Cabrières",
        u"Clairette",
        u"Faugères",
        u"Grès-de-montpellier",
        u"La Clape",
        u"La Méjanelle",
        u"Montpeyroux",
        u"Pézenas",
        u"Picpoul de Pinet",
        u"Pic-saint-loup",
        u"Quatourze",
        u"Saint-chinian",
        u"Saint-christol",
        u"Saint-drézery",
        u"Saint-georges-d'orques",
        u"Saint-saturnin",
        u"Terrasses-du-larzac",
        u"Sommières",
        u"Vérargues",



        newgroup("Roussillon",id="roussillon"),

        u"Côtes Catalanes",
        u"Côte Vermeille",
        u"Pyrénées Orientales",
        u"Collioure",
        u"Côtes-du-roussillon",
        u"Côtes-du-roussillon Les Aspres",
        u"Côtes-du-roussillon villages",
        u"Côtes-du-roussillon villages",
        u"Côtes-du-roussillon villages",
        u"Côtes-du-roussillon villages",
        u"Côtes-du-roussillon villages",

        u"Banyuls",
        u"Banyuls Grand Cru",
        u"Grand Roussillon",
        u"Maury",
        u"Muscat de Rivesaltes",
        u"Rivesaltes",
        ]
                       )
    return r
